<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>29_属性-改</title>
    </head>
    <body>
        <script>
            var person = {name:'zhangsan',age:18};

            // 有则改之  无则加冕
            
            person.age = 19;
            person['name'] = 'lisi';
            console.log(person);
        </script>
    </body>
</html>